﻿/*
 *	Copyright (c) 2009 Queensland University of Technology. All rights reserved.
 *	The QUT Bioinformatics Collection is open source software released under the 
 *	Microsoft Public License (Ms-PL): http://www.microsoft.com/opensource/licenses.mspx.
 */
using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using QUT.Bio.Graphs;
using QUT.Bio.Util;

namespace QUT.Bio.SilverMap {

	/// <summary>
	/// DistanceRow 
	/// </summary>

	public class DistanceRow : Triple<decimal, decimal, double> {
		public DistanceRow (
			decimal queryId,
			decimal hitId,
			double distance
		) {
			First = queryId;
			Second = hitId;
			Third = distance;
		}

		public decimal QueryId {
			get {
				return First;
			}
		}

		public decimal HitId {
			get {
				return Second;
			}
		}

		public double Distance {
			get {
				return Third;
			}
		}

		public override string ToString () {
			return string.Format( "QueryId: {0}, HitId: {1}, Distance: {2}",
				QueryId, HitId, Distance
			);
		}
	}
}
